<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>DooHTML-dom</title>
  <link href="/css/currentStyle.css" rel="preload" as="style"/>
  <link href="/css/currentStyle.css" rel="stylesheet"/>
  <link href="./js/doo.html.min.js" rel="preload" as="script"/>
  <script src="./js/doo.html.min.js"></script>
  <script type="module" src="./js/Main.class.js" defer ></script>
  <template id="table">
	<table class="table table-hover table-striped test-data">
		<tbody id="tbody"><tr bind="rows"><td class="col-md-1">{{id}}</td><td class="col-md-4"><a>{{label}}</a></td><td class="col-md-1"><a class="remove"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a></td><td class="col-md-6"></td></tr></tbody>
	</table>
  </template>
</head>
<body>
  <div id="main">
    <div class="container">
        <div class="jumbotron">
            <div class="row">
                <div class="col-md-6">
                    <h1>DooHTML-dom - keyed</h1><span class="ver"></span>
                </div>
                <div class="col-md-6">
                    <div class="row">
                        <div class="col-sm-6 smallpad">
                        <button type="button" class="btn btn-primary btn-block" id="run">Create 1,000 rows</button>
                        </div>
                        <div class="col-sm-6 smallpad">
                            <button type="button" class="btn btn-primary btn-block" id="runlots">Create 10,000 rows</button>
                        </div>
                        <div class="col-sm-6 smallpad">
                            <button type="button" class="btn btn-primary btn-block" id="add">Append 1,000 rows</button>
                        </div>
                        <div class="col-sm-6 smallpad">
                            <button type="button" class="btn btn-primary btn-block" id="update">Update every 10th row</button>
                        </div>
                        <div class="col-sm-6 smallpad">
                            <button type="button" class="btn btn-primary btn-block" id="clear">Clear</button>
                        </div>
                        <div class="col-sm-6 smallpad">
                            <button type="button" class="btn btn-primary btn-block" id="swaprows">Swap Rows</button>
                        </div>
                    </div>
                </div>
            </div>
            </div>
            <doo-main
                context="document"
                data-key="id"
                data-has-html="false"
                template="#table"
            ></doo-main>
        </div>  
        <span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
    </div>
</body>
</html>